//
//  RealUserTableViewCell.m
//  Jyxt
//
//  Created by 宫璞 on 2017/9/11.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "RealUserTableViewCell.h"
#import "Hcolors.h"
@implementation RealUserTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 80, 24)];
        self.nameLabel.text = @"使用人:";
        self.nameLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.nameLabel];
        
        self.detailNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.nameLabel.frame.origin.x + self.nameLabel.frame.size.width + 10, 10, 80, 24)];
        self.detailNameLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.detailNameLabel];
        
        self.zeroLineLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 44, [UIScreen mainScreen].bounds.size.width, 0.5)];
        [self addSubview:self.zeroLineLabel];
        
        self.mobileLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, self.zeroLineLabel.frame.origin.y + self.zeroLineLabel.frame.size.height  +10, 80, 24)];
        self.mobileLabel.text = @"手机号:";
        self.mobileLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.mobileLabel];
        
        self.detailMobileLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.mobileLabel.frame.origin.x + self.mobileLabel.frame.size.width + 10, self.zeroLineLabel.frame.origin.y + self.zeroLineLabel.frame.size.height  +10, [UIScreen mainScreen].bounds.size.width - 10 - 10 - 80, 24)];
        self.detailMobileLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.detailMobileLabel];
        
        self.lineOneLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 88.5, [UIScreen mainScreen].bounds.size.width, 0.5)];
        [self addSubview:self.lineOneLabel];
        
        self.idNoLable = [[UILabel alloc]initWithFrame:CGRectMake(10, self.lineOneLabel.frame.origin.y + self.lineOneLabel.frame.size.height + 10, 80, 24)];
        self.idNoLable.text = @"证件号:";
        self.idNoLable.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.idNoLable];
        
        self.detailIdNoLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.idNoLable.frame.origin.x + self.idNoLable.frame.size.width + 10, self.lineOneLabel.frame.origin.y + self.lineOneLabel.frame.size.height + 10, [UIScreen mainScreen].bounds.size.width - 80 - 10 - 10 - 10, 24)];
        self.detailIdNoLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.detailIdNoLabel];
    }
    return self;
}

- (void)setContent:(McontractDetailModel *)realUser{
    self.detailNameLabel.text = realUser.name;
    self.detailMobileLabel.text = realUser.mobile;
    self.detailIdNoLabel.text = realUser.idNo;
}


@end
